	<%@ page import="com.placement.app.util.Constants"%>
	<script>
	function showValidationMsg(){
	<%
		String confirmMessage = (String) request.getAttribute(Constants.ALERT_MESSAGE);
		String actionString = (String) request.getAttribute(Constants.ACTION_STRING);
		if ( actionString!=null && confirmMessage != null && confirmMessage.trim().length() > 0)
		{
	%>
		var confirmMessage = "<%=confirmMessage%>";
		//This replace function is used for showing the error message on multiple lines. The java code contains '#' whereever we need to add \n.
		confirmMessage = confirmMessage.replace(/#/g,'\n');  
		if ( true == confirm(confirmMessage))
		{
			document.forms[0].action.value='<%=actionString%>';
			document.forms[0].submit();
			showInProgressMessage();
		}else {
		}
	<%		
		}
		request.setAttribute(Constants.ACTION_STRING, null); 
		request.setAttribute(Constants.ALERT_MESSAGE, null); 
	%>
	}
	</script>
